﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Company.Merchandising.ServiceLayer.MenuManagement;

namespace WebApplication.MasterPages
{
    public partial class Restricted : System.Web.UI.MasterPage
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Master == null)
                {
                    return;
                }

                Panel panel = Master.FindControl("MainContentPlaceHolder").FindControl("MenuPanel") as Panel;
                if (panel == null)
                {
                    return;
                }

                MenuManager oMenuManager = new MenuManager();
                panel.Controls.Add(oMenuManager.GetRadMenu(new List<Company.Merchandising.BusinessLayer.DataTransferObjects.DTOFaculty>()));
            }
        }
    }
}
